package com.anpy.bill.model.enums;

public enum LoginEnum {

    PHONE(1),
    WX(2),
    WB(3);

    private int type;

    LoginEnum(int type) {
        this.type = type;
    }

    public static LoginEnum getLoginType(int loginType){
        for(LoginEnum loginEnum : LoginEnum.values()){
            if(loginEnum.getType() == loginType){
                return loginEnum;
            }
        }
        return null;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }
}
